package com.kmxd.ams.client.event.es;

import com.kmxd.ams.client.event.AmsEvent;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;

/**
 * 更新通用权限到 es
 *
 * @author nickbi
 */
@EqualsAndHashCode(callSuper = true)
@Getter
@ToString(callSuper = true)
public class EsCreateIndexEvent extends AmsEvent {

  private final String archTypeIds;
  private final Boolean cleanOldIndex;

  public EsCreateIndexEvent(String archTypeIds, Boolean cleanOldIndex) {
    this.archTypeIds = archTypeIds;
    this.cleanOldIndex = cleanOldIndex;
  }
}
